package org.sang.service;

import org.sang.dao.RoleMapper;
import org.sang.beans.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RoleService {
    @Autowired
    RoleMapper roleMapper;
    public List<Role> roles(){
        return roleMapper.roles();
    }




}
